package ynu.edu.achitectureclass.repository;

import ynu.edu.achitectureclass.entity.AccessToken;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface AccessTokenRepository extends JpaRepository<AccessToken, Long> {

    // 查询最新的 accessToken
    Optional<AccessToken> findTopByOrderByCreatedAtDesc();
}